<?php
class FrmTerminal{	
	private $divInformation;
        //private $inputClock;
        private $frmInformation;
        private $messageTosend;
	private $divContent;
	private $divTray;

	private $textAreaTray; //--Bandeja de entrada de datos
        
        private $commandToServer; //comando que van al server por medio de Ajax
        private $dataToServer; //datos que van al server por medio de Ajax
        
	
	public function __construct(){
		$this->divInformation=new Div($name="divInformation", $id="divInformation", $class="terminal1", $events=array(),$height="",$width="",$top="",$left="", $visibility="");
                //$this->divInformationContent=new Div($name="divInformationContent", $id="divInformationContent", $class="", $events=array(),$height="",$width="",$top="",$left="", $visibility="");
                $this->frmInformation=new FrmInformation();
                $this->divContent=new Div($name="divContent", $id="divContent", $class="terminal2", $events=array(),$height="",$width="",$top="",$left="", $visibility="");

		$this->divTray=new Div($name="divTray", $id="divTray", $class="terminal3", $events=array(),$height="",$width="",$top="",$left="", $visibility="");
			
		//Bandeja de entrada-------------------------------------------------------------
		$this->commandToServer=new Hidden($name="commandToServer", $id="commandToServer", $value="", array());
                $this->dataToServer=new Hidden($name="dataToServer", $id="dataToServer", $value="", array());
                
                $this->textAreaTray=new TextArea($cols="40", $rows="2", $name="tray", $id="tray", $disabled="", $readOnly="", $accessKey="", $tabIndex="", $wrap="", $content="0:", $class="",$events=array());	
        }

	public function setInformation($i){
		$this->information=$i;
                $this->frmInformation->setMessageText($i);
	}
	public function getInformation($i){
		return $this->information;
	}

	public function setVisible($visible=true){
		$this->divInformation->start();
                    $this->frmInformation->setVisible($visible=true);
		$this->divInformation->end();
		echo '<br />';
		$this->divContent->start();
			//$this->content->showContent();
		$this->divContent->end();
		echo '<br />';
		$this->divTray->start();
			$this->textAreaTray->show();
                        $this->commandToServer->show();
                        $this->dataToServer->show();
		$this->divTray->end();

	}
}

?>

